import sst

# 创建Atomic CPU
cpu = sst.Component("atomic_cpu", "simpleElementExample.simpleCPU")
cpu.addParams({
    "clock": "2GHz",
    "executable": "test",
    "memSize": "1MiB",
    "verbose": 0
})

# 简单内存模型
memory = sst.Component("memory", "simpleElementExample.simpleMem")
memory.addParams({"access_time": "10ns"})

# 连接CPU和内存
link = sst.Link("link")
link.connect((cpu, "mem_link", "10ns"), (memory, "port", "10ns"))
